home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 14 / CU Amiga Magazine's Super CD-ROM 14 (1997)(EMAP Images)(GB)(Track 1 of 3)[!][issue 1997-09].iso / CUCD / Programming / Mesa-2.2 / src / config.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-03-13  |  3.4 KB  |  163 lines

  1. /* $Id: config.h,v 1.4 1997/01/08 20:54:02 brianp Exp $ */
  2.  
  3. /*
  4.  * Mesa 3-D graphics library
  5.  * Version:  2.2
  6.  * Copyright (C) 1995-1997  Brian Paul
  7.  *
  8.  * This library is free software; you can redistribute it and/or
  9.  * modify it under the terms of the GNU Library General Public
  10.  * License as published by the Free Software Foundation; either
  11.  * version 2 of the License, or (at your option) any later version.
  12.  *
  13.  * This library is distributed in the hope that it will be useful,
  14.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  16.  * Library General Public License for more details.
  17.  *
  18.  * You should have received a copy of the GNU Library General Public
  19.  * License along with this library; if not, write to the Free
  20.  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  21.  */
  22.  
  23.  
  24. /*
  25.  * $Log: config.h,v $
  26.  * Revision 1.4  1997/01/08 20:54:02  brianp
  27.  * added DITHER666 option from Michael Pichler
  28.  *
  29.  * Revision 1.3  1996/10/01 03:30:18  brianp
  30.  * changed MAX_DEPTH to 0x00ffffff for 32-bit depth buffer
  31.  *
  32.  * Revision 1.2  1996/09/15 01:49:26  brianp
  33.  * removed some junk
  34.  *
  35.  * Revision 1.1  1996/09/13 01:38:16  brianp
  36.  * Initial revision
  37.  *
  38.  */
  39.  
  40.  
  41.  
  42. /*
  43.  * Tunable configuration parameters.
  44.  */
  45.  
  46.  
  47.  
  48. #ifndef CONFIG_H
  49. #define CONFIG_H
  50.  
  51.  
  52.  
  53. /* Maximum modelview matrix stack depth: */
  54. #define MAX_MODELVIEW_STACK_DEPTH 32
  55.  
  56. /* Maximum projection matrix stack depth: */
  57. #define MAX_PROJECTION_STACK_DEPTH 32
  58.  
  59. /* Maximum texture matrix stack depth: */
  60. #define MAX_TEXTURE_STACK_DEPTH 10
  61.  
  62. /* Maximum attribute stack depth: */
  63. #define MAX_ATTRIB_STACK_DEPTH 16
  64.  
  65. /* Maximum client attribute stack depth: */
  66. #define MAX_CLIENT_ATTRIB_STACK_DEPTH 16
  67.  
  68. /* Maximum number of display lists: */
  69. #define MAX_DISPLAYLISTS 7000
  70.  
  71. /* Maximum recursion depth of display list calls: */
  72. #define MAX_LIST_NESTING 64
  73.  
  74. /* Maximum number of lights: */
  75. #define MAX_LIGHTS 8
  76.  
  77. /* Maximum user-defined clipping planes: */
  78. #define MAX_CLIP_PLANES 6
  79.  
  80. /* Number of texture levels */
  81. #define MAX_TEXTURE_LEVELS 11
  82.  
  83. /* Max texture size */
  84. #define MAX_TEXTURE_SIZE   (1 << (MAX_TEXTURE_LEVELS-1))
  85.  
  86. /* Maximum pixel map lookup table size: */
  87. #define MAX_PIXEL_MAP_TABLE 256
  88.  
  89. /* Number of auxillary color buffers: */
  90. #define NUM_AUX_BUFFERS 0
  91.  
  92. /* Maximum order (degree) of curves: */
  93. #ifdef AMIGA
  94. #   define MAX_EVAL_ORDER 12
  95. #else
  96. #   define MAX_EVAL_ORDER 30
  97. #endif
  98.  
  99. /* Maximum Name stack depth */
  100. #define MAX_NAME_STACK_DEPTH 64
  101.  
  102. /* Min and Max point sizes and granularity */
  103. #define MIN_POINT_SIZE 1.0
  104. #define MAX_POINT_SIZE 10.0
  105. #define POINT_SIZE_GRANULARITY 0.1
  106.  
  107. /* Min and Max line widths and granularity */
  108. #define MIN_LINE_WIDTH 1.0
  109. #define MAX_LINE_WIDTH 10.0
  110. #define LINE_WIDTH_GRANULARITY 1.0
  111.  
  112.  
  113. /* Maximum viewport size: */
  114. #ifdef AMIGA
  115. #  define MAX_WIDTH 640
  116. #  define MAX_HEIGHT 400
  117. #else
  118. #  define MAX_WIDTH 1280
  119. #  define MAX_HEIGHT 1024
  120. #endif
  121.  
  122.  
  123.  
  124. /*
  125.  * Bits per accumulation buffer color component:  8 or 16
  126.  */
  127. #define ACCUM_BITS 16
  128.  
  129.  
  130. /*
  131.  * Bits per depth buffer value:  16 or 32
  132.  */
  133. #define DEPTH_BITS 16
  134.  
  135. #if DEPTH_BITS==16
  136. #  define MAX_DEPTH 0xffff
  137. #  define DEPTH_SCALE 65535.0F
  138. #else
  139. #  define MAX_DEPTH 0x00ffffff
  140. #  define DEPTH_SCALE ((GLfloat) 0x00ffffff)
  141. #endif
  142.  
  143.  
  144. /*
  145.  * Bits per stencil value:  8
  146.  */
  147. #define STENCIL_BITS 8
  148.  
  149.  
  150.  
  151. /***
  152.  *** For X11 driver only:
  153.  ***/
  154.  
  155. /*
  156.  * When defined, use 6x6x6 dithering instead of 5x9x5.
  157.  * 5x9x5 better for general colors, 6x6x6 better for grayscale.
  158.  */
  159. /*#define DITHER666*/
  160.  
  161.  
  162. #endif
  163.